﻿// -----------------------------------------------------------------------
// <copyright file=PhieuKhamBenhBusiness company="">
// TODO: dangppsoft@gmail.com
// </copyright>
// -----------------------------------------------------------------------
namespace ManagerClinic.Core.Business
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using ManagerClinic.Core.Common;
    using ManagerClinic.Core.DataAccess;

    public class PhieuKhamBenhBusiness
    {
        PhieuKhamBenhDataAccess objDa = null;

        public PhieuKhamBenhBusiness()
        {
            objDa = new PhieuKhamBenhDataAccess();
        }

        public bool InsertPhieuKhamBenh(PhieuKhamBenhEntity obj)
        {
            return objDa.InsertPhieuKhamBenh(obj);
        }

        public bool EditPhieuKhamBenh(PhieuKhamBenhEntity obj)
        {
            return objDa.EditPhieuKhamBenh(obj);
        }

        public bool DeletePhieuKhamBenh(string maKhamBenh)
        {
            return objDa.DeletePhieuKhamBenh(maKhamBenh);
        }

        public PhieuKhamBenhEntity GetPhieuKhamBenh(string maKhamBenh)
        {
            return objDa.GetPhieuKhamBenh(maKhamBenh);
        }

        public IList<PhieuKhamBenhEntity> GetPhieuKhamBenhList(DateTime ngayVaoKham, int trangThaiPhieu)
        {
            return objDa.GetPhieuKhamBenhList(ngayVaoKham, trangThaiPhieu);
        }

        public List<PhieuKhamBenhEntity> GetAllPhieuKhamBenhByMaHoSo(string maHoSo)
        {
            return objDa.GetAllPhieuKhamBenhByMaHoSo(maHoSo);
        }

    }
}